package ui.model;

import java.io.Serializable;

import util.StringUtils;

/**
 * Created by chenjian on 2019/12/2
 */

public class RewardsBean extends BaseBean implements Serializable {

    /**
     * amount : 0.0
     * createTime : 1575285040000
     * customerId : 1090
     * id : 1155
     * layout : 购买奖
     * recordCount : 0
     * snCount : 0
     * sort : 1
     * type : 1
     * updateTime : 1575427827000
     */

    private String amount;
    private String amountStr;
    private long createTime;
    private int customerId;
    private int id;
    private String layout;
    private int recordCount;
    private int snCount;
    private String sort;
    private int type;
    private long updateTime;

    public String getAmountStr() {
        return returnInfo(amountStr);
    }

    public void setAmountStr(String amountStr) {
        this.amountStr = amountStr;
    }

    public String getAmount() {
        return StringUtils.isEmpty(amount) ? "0" : amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLayout() {
        return returnInfo(layout);
    }

    public void setLayout(String layout) {
        this.layout = layout;
    }

    public int getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(int recordCount) {
        this.recordCount = recordCount;
    }

    public int getSnCount() {
        return snCount;
    }

    public void setSnCount(int snCount) {
        this.snCount = snCount;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }


}
